package com.estore.manager;

import java.util.List;

import com.estore.entity.Brand;
import com.estore.entity.Categories;
import com.estore.info.BrandInfo;
import com.estore.info.CatInfo;
import com.estore.info.ProductInfo;
import com.estore.info.SubCatInfo;

public interface ProductManager {

	public List<CatInfo> listCatInfo();

	public List<SubCatInfo> listSubCatInfo();

	public List<ProductInfo> getListProduct(int catID);

	public List<ProductInfo> getListAllProduct();

	public void addProduct(ProductInfo info);

	public void addBrand(String brandName, String website);

	public List<BrandInfo> getListBrand();

	public boolean checkBrandName(String brandName);

	public BrandInfo getBrandInfo(int brandID);

	public void updateBrand(int brandID, String brandName, String website);

	public void insertCategories(CatInfo cat);

	public CatInfo getCategories(Integer catID);

	public boolean checkCategories(String catName);

	public void updateCategories(CatInfo info);

	public boolean checkProduct(String productName);
	
	// get top 12 newest product with categories name, brand name and img display on homepage
	
	public List<ProductInfo> getTop12NewProduct();
}
